<template>
    <view class="data-v-e0c61f30">
        <view
            class="content-c data-v-e0c61f30"
            :style="'background-color:#1c1c1e;min-height:100vh;' + 'margin-top:' + pageStyle.margin_top + 'rpx; padding: 0 ' + pageStyle.margin + 'rpx;'"
        >
            <view
                class="data-v-e0c61f30"
                :style="'padding: 0 ' + (item.style && item.style.margin) + 'rpx;' + (item.style.display === 'none' ? 'display:none' : '') + ';'"
                v-for="(item, index) in modules"
                :key="index"
            >
                <banner
                    @__l="__l"
                    class="data-v-e0c61f30"
                    :iStyle="'height: ' + item.style.height + 'rpx;'"
                    :imageStyle="'border-radius: ' + item.style.radius + 'rpx;'"
                    :list="item.list"
                    :vueId="'182737e8-1-' + index"
                    v-if="item.type === 'swiper'"
                ></banner>

                <block v-else>
                    <card-title
                        @__l="__l"
                        class="data-v-e0c61f30"
                        :isShowMore="item.is_show_more"
                        :leftIcon="item.left_icon"
                        :link="item.more_link"
                        :moreText="item.more_text"
                        :title="item.title"
                        :vueId="'182737e8-2-' + index"
                        v-if="item.type === 'title'"
                    ></card-title>
                    <block v-else>
                        <box-list
                            @__l="__l"
                            class="data-v-e0c61f30"
                            :getNextPageCounter="getNextPageCounter"
                            :ids="item.list"
                            :module="item"
                            :refreshCounter="refreshCounter"
                            :vueId="'182737e8-3-' + index"
                            v-if="item.type === 'boxes'"
                        ></box-list>
                        <block v-else>
                            <product-list
                                @__l="__l"
                                class="data-v-e0c61f30"
                                :getNextPageCounter="getNextPageCounter"
                                :ids="item.list"
                                :module="item"
                                :refreshCounter="refreshCounter"
                                :vueId="'182737e8-4-' + index"
                                v-if="item.type === 'products'"
                            ></product-list>
                            <block v-else>
                                <coupon-list
                                    @__l="__l"
                                    class="data-v-e0c61f30"
                                    :getNextPageCounter="getNextPageCounter"
                                    :ids="item.list"
                                    :module="item"
                                    :refreshCounter="refreshCounter"
                                    :vueId="'182737e8-5-' + index"
                                    v-if="item.type === 'coupons'"
                                ></coupon-list>
                                <block v-else>
                                    <activity-list
                                        @__l="__l"
                                        class="data-v-e0c61f30"
                                        :getNextPageCounter="getNextPageCounter"
                                        :homeNum="homeNum"
                                        :ids="item.list"
                                        :module="item"
                                        :refreshCounter="refreshCounter"
                                        :vueId="'182737e8-6-' + index"
                                        v-if="item.type === 'activities'"
                                    ></activity-list>
                                    <block v-else>
                                        <i-p-list
                                            @__l="__l"
                                            class="data-v-e0c61f30"
                                            :refreshCounter="refreshCounter"
                                            :vueId="'182737e8-7-' + index"
                                            v-if="item.type === 'ips'"
                                        ></i-p-list>
                                        <block v-else>
                                            <category-list
                                                @__l="__l"
                                                class="data-v-e0c61f30"
                                                :module="item"
                                                :refreshCounter="refreshCounter"
                                                :vueId="'182737e8-8-' + index"
                                                v-if="item.type === 'categoryList'"
                                            ></category-list>
                                            <block v-else>
                                                <image-list
                                                    @__l="__l"
                                                    class="data-v-e0c61f30"
                                                    :module="item"
                                                    :vueId="'182737e8-9-' + index"
                                                    v-if="item.type === 'images'"
                                                ></image-list>
                                                <block v-else>
                                                    <search-bar
                                                        @__l="__l"
                                                        class="data-v-e0c61f30"
                                                        :module="item"
                                                        :vueId="'182737e8-10-' + index"
                                                        v-if="item.type === 'searchBar'"
                                                    ></search-bar>
                                                    <block v-else>
                                                        <view class="data-v-e0c61f30" v-if="item.type === 'imageList'">
                                                            <pure-image-list @__l="__l" class="data-v-e0c61f30" :module="item" :vueId="'182737e8-11-' + index"></pure-image-list>
                                                        </view>
                                                        <block v-else>
                                                            <video-item
                                                                @__l="__l"
                                                                class="data-v-e0c61f30"
                                                                :module="item"
                                                                :vueId="'182737e8-12-' + index"
                                                                v-if="item.type === 'video'"
                                                            ></video-item>
                                                            <block v-else>
                                                                <signin-card
                                                                    @__l="__l"
                                                                    class="data-v-e0c61f30"
                                                                    :module="item"
                                                                    :vueId="'182737e8-13-' + index"
                                                                    v-if="item.type === 'signin'"
                                                                ></signin-card>
                                                                <block v-else>
                                                                    <h-t-m-l
                                                                        @__l="__l"
                                                                        class="data-v-e0c61f30"
                                                                        :html="item.html"
                                                                        :vueId="'182737e8-14-' + index"
                                                                        v-if="item.type === 'html'"
                                                                    ></h-t-m-l>
                                                                </block>
                                                            </block>
                                                        </block>
                                                    </block>
                                                </block>
                                            </block>
                                        </block>
                                    </block>
                                </block>
                            </block>
                        </block>
                    </block>
                </block>
            </view>
        </view>
    </view>
</template>

<script>
import banner from '@/components/Banner/Banner';
import cardTitle from '@/components/cardTitle/cardTitle';
import boxList from '@/components/BoxList/BoxList';
import productList from '@/components/ProductList/ProductList';
import couponList from '@/components/CouponList/CouponList';
import activityList from '@/components/ActivityList/ActivityList';
import iPList from '@/components/IPList/IPList';
import categoryList from '@/components/CategoryList/CategoryList';
import signinCard from '@/components/SigninCard/SigninCard';
import hTML from '@/components/HTML/HTML';
import imageList from '@/components/PageRender/modules/ImageList';
import pureImageList from '@/components/PageRender/modules/PureImageList';
import videoItem from '@/components/PageRender/modules/Video';
import searchBar from '@/components/PageRender/modules/SearchBar';
import tabBar from '@/components/TabBar/tabBar';
(global.webpackJsonp = global.webpackJsonp || []).push([
    ['components/PageRender/themes/DefaultTheme'],
    {
        '09e9': function (e, n, t) {
            'use strict';

            var o = t('237c');
            t.n(o).a;
        },
        '237c': function (e, n, t) {},
        '8dad': function (e, n, t) {
            'use strict';

            t.d(n, 'b', function () {
                return u;
            });
            t.d(n, 'c', function () {
                return i;
            });
            t.d(n, 'a', function () {
                return o;
            });
            var o = {
                Banner: function () {
                    return t.e('components/Banner/Banner').then(t.bind(null, '8003'));
                },
                cardTitle: function () {
                    return t.e('components/cardTitle/cardTitle').then(t.bind(null, '9c6f'));
                },
                BoxList: function () {
                    return t.e('components/BoxList/BoxList').then(t.bind(null, 'a640a'));
                },
                ProductList: function () {
                    return t.e('components/ProductList/ProductList').then(t.bind(null, '0cf8'));
                },
                CouponList: function () {
                    return t.e('components/CouponList/CouponList').then(t.bind(null, '040b'));
                },
                ActivityList: function () {
                    return Promise.all([t.e('common/vendor'), t.e('components/ActivityList/ActivityList')]).then(t.bind(null, 'eec7'));
                },
                IPList: function () {
                    return t.e('components/IPList/IPList').then(t.bind(null, '3ff6'));
                },
                CategoryList: function () {
                    return t.e('components/CategoryList/CategoryList').then(t.bind(null, '77b7'));
                },
                SigninCard: function () {
                    return t.e('components/SigninCard/SigninCard').then(t.bind(null, '4003'));
                },
                HTML: function () {
                    return t.e('components/HTML/HTML').then(t.bind(null, 'b320'));
                }
            };
            var u = function () {
                this.$createElement;
                this._self._c;
            };
            var i = [];
        },
        b4fb: function (e, n, t) {
            'use strict';

            t.r(n);
            var o = t('f980');
            var u = t.n(o);
            for (var i in o) {
                if (['default'].indexOf(i) < 0) {
                    (function (e) {
                        t.d(n, e, function () {
                            return o[e];
                        });
                    })(i);
                }
            }
            n.default = u.a;
        },
        ee86: function (e, n, t) {
            'use strict';

            t.r(n);
            var o = t('8dad');
            var u = t('b4fb');
            for (var i in u) {
                if (['default'].indexOf(i) < 0) {
                    (function (e) {
                        t.d(n, e, function () {
                            return u[e];
                        });
                    })(i);
                }
            }
            t('09e9');
            var c = t('f0c5');
            var r = Object(c.a)(u.default, o.b, o.c, false, null, 'e0c61f30', null, false, o.a, void 0);
            n.default = r.exports;
        },
        f980: function (e, n, t) {
            'use strict';

            (function (e) {
                Object.defineProperty(n, '__esModule', {
                    value: true
                });
                n.default = void 0;
                var o = {
                    components: {
                        ImageList: function () {
                            t.e('components/PageRender/modules/ImageList')
                                .then(
                                    function () {
                                        return resolve(t('a3da'));
                                    }.bind(null, t)
                                )
                                .catch(t.oe);
                        },
                        PureImageList: function () {
                            t.e('components/PageRender/modules/PureImageList')
                                .then(
                                    function () {
                                        return resolve(t('12fe'));
                                    }.bind(null, t)
                                )
                                .catch(t.oe);
                        },
                        VideoItem: function () {
                            t.e('components/PageRender/modules/Video')
                                .then(
                                    function () {
                                        return resolve(t('d556'));
                                    }.bind(null, t)
                                )
                                .catch(t.oe);
                        },
                        SearchBar: function () {
                            t.e('components/PageRender/modules/SearchBar')
                                .then(
                                    function () {
                                        return resolve(t('7ac7'));
                                    }.bind(null, t)
                                )
                                .catch(t.oe);
                        }
                    },
                    props: {
                        homeNum: {
                            type: Number,
                            default: 0
                        },
                        refreshCount: {
                            type: Number
                        },
                        page: {
                            type: Object,
                            default: function () {
                                return {
                                    style: {}
                                };
                            }
                        },
                        refreshCounter: Number,
                        getNextPageCounter: Number
                    },
                    data: function () {
                        return {};
                    },
                    computed: {
                        modules: function () {
                            return this.page.modules || [];
                        },
                        pageStyle: function () {
                            return (this.page && this.page.style) || {};
                        }
                    },
                    mounted: function () {},
                    watch: {},
                    methods: {
                        handlePickClick: function () {
                            var n = [];
                            console.log(this.modules);
                            this.modules.forEach(function (e) {
                                if (e.list && e.list.length > 0) {
                                    e.list.forEach(function (e) {
                                        n.push(e);
                                    });
                                }
                            });
                            console.log(n);
                            this.$http('/coupons/pick-plural', 'POST', {
                                ids: n
                            }).then(function (n) {
                                e.$showMsg('领取成功');
                            });
                        }
                    }
                };
                n.default = o;
            }.call(this, t('543d').default));
        }
    }
]);
(global.webpackJsonp = global.webpackJsonp || []).push([
    'components/PageRender/themes/DefaultTheme-create-component',
    {
        'components/PageRender/themes/DefaultTheme-create-component': function (e, n, t) {
            t('543d').createComponent(t('ee86'));
        }
    },
    [['components/PageRender/themes/DefaultTheme-create-component']]
]);
</script>
<style>
@import './DefaultTheme.css';
</style>
